package com.example.ssmxuankeback.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;

@Data
@Schema(name = "EnrollmentPageQueryDTO", description = "选课记录分页查询参数")
public class EnrollmentPageQueryDTO {
    @Schema(description = "当前页码", example = "1")
    @Min(1) private Integer pageNum = 1;

    @Schema(description = "每页条数", example = "10")
    @Min(1) @Max(100) private Integer pageSize = 10;

    @Schema(description = "学生ID") private Long studentId;
    @Schema(description = "课程ID") private Long courseId;
    @Schema(description = "状态（0-退选，1-有效）") private Integer status;
    @Schema(description = "排序字段（enrollTime/status）") private String sortBy;
    @Schema(description = "排序方式（asc/desc）") private String sortOrder = "asc";
}